/**********************************************************
    COPYRIGHT
        KND, Inc. (c) 2011
    CLASS NAME
        platform_pwm.h
    DEPENDENCY

    HISTORY
		09/17/2011, created by Guangxing Liu
**********************************************************/
#ifndef PLATFORM_PWM_H
#define PLATFORM_PWM_H

#define PWM_DEVICE           	 "PWM"

#define platform_pwm_app_call_device_op_pwminit    	         "0_pwminit"
#define platform_pwm_app_call_device_op_setpwmvalue    	"1_setpwmvalue"

typedef enum{
	Platform_Pwm_App_Call_None = 0,
	Platform_Pwm_App_Call_Pwm_Init,
	Platform_Pwm_App_Call_Pwm_Setpwmvalue
	
}platform_pwm_device_opt;

typedef struct _platform_pwm_app_call_
{
	platform_pwm_device_opt iOpt;
	
}platform_pwm_app_call;


typedef struct _platform_pwm_config_
{
 	unsigned char pwm_no;
	unsigned char pwm_channel;
	unsigned int pwm_value;

}platform_pwm_config;


typedef struct _platform_pwm_value_
{
 	unsigned char channel;
	unsigned int value;

}platform_pwm_value;


enum{	
	PORT_PWM0,
	PORT_PWM1,
};
enum{	
	PWM_CHANNEL0,
	PWM_CHANNEL1,
	PWM_CHANNEL2,
	PWM_CHANNEL3,
	PWM_CHANNEL4,
	PWM_CHANNEL5,
	PWM_CHANNEL6,
	
};






















#endif






















